﻿/*
 * RssGuid
 * 
 * See http://cyber.law.harvard.edu/rss/rss.html#ltguidgtSubelementOfLtitemgt
 * 
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace SNSpirit.Domain.Rss
{
    [Serializable]
    [XmlRoot(ElementName = "rssGuid", Namespace = DomainUtillity.Namespace)]
    public class RssGuid : DomainEntity
    {
        public RssGuid()
        {
            // by default
            this.IsPermalLink = true;
        }
        /// <summary>
        /// Value (any format, such as url and by default this should be an url)
        /// </summary>
        [XmlAttribute(AttributeName = "value", Namespace = DomainUtillity.Namespace)]
        public string Value { get; set; }
        /// <summary>
        /// Is the value a url or not
        /// </summary>
        [XmlAttribute(AttributeName = "isPermalLink", Namespace = DomainUtillity.Namespace)]
        public bool IsPermalLink { get; set; }
    }
}
